window.addEventListener('DOMContentLoaded',()=>{
    const nameElement=document.getElementById('name');
    const btnElement=document.getElementById('btn');
    const name=localStorage.getItem('name');
    nameElement.innerText=name
    btnElement.addEventListener('click',()=>{
        window.electronAPI.sendMsg('来自新窗口的数据')
    })
    window.electronAPI.toMsg((value)=>{
        console.log('new22222222',value)
    })
})